package com.acme.bankapp.exceptions.bank;

import com.acme.bankapp.domain.bank.Account;

public class OverDraftLimitExceededException extends NotEnoughFundsException{

	private Account account;
	
	public OverDraftLimitExceededException() {
		}
	
	public OverDraftLimitExceededException(Account acc) {
		account = acc;
	}
	 public void outputPrint(){
		 System.out.println("You cannot get the sum you wish. Only " + account.maximumAmountToWithdraw() 
				 + " are available.");
	 }
}
